<template>
    <div class="demo">
        <h1>学校的名称：{{name}}</h1>
        <h1>学校的地址：{{address}}</h1>
        <button @click="showMsg">提示消息</button>
    </div>
</template>

<script>
export default {
    name: 'SchoolName',
    data(){
        return {
            name: '尚硅谷',
            address: '北京'
        }
    },

    methods: {
        showMsg(){
            alert('你好')
        }
    },
}
</script>

<style>
    .demo{
        background-color: orange;
    }
</style>